package com.example.administrator.notification;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;

public class DialogActivity extends Activity {
    public static DialogActivity instance = null;
    private TextView confirm_textview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_activity_layout);
        this.setFinishOnTouchOutside(false);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
        getWindow().setDimAmount(0f);
        instance = this;
        initView();
    }

    private void initView() {
        confirm_textview = (TextView) this.findViewById(R.id.confirm_textview);
        confirm_textview.setClickable(true);
        confirm_textview.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
